package com.huluobo.day_1_lifecycledemo.viewbinding;

import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.huluobo.day_1_lifecycledemo.R;
import com.huluobo.day_1_lifecycledemo.databinding.FragmentMain2Binding;

public class MainFragment2 extends BaseFragment<FragmentMain2Binding> {

    @Override
    protected FragmentMain2Binding getViewBinding(LayoutInflater inflater, ViewGroup container,
                                                  Bundle savedInstanceState) {
        return FragmentMain2Binding.inflate(inflater, container, false);
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        viewBinding.main2Tv.setText("123");
    }
}